<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */

// Show all errors:
error_reporting(E_ALL);

// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');

// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');

// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');

//make sure our session vars are correct
//$_SESSION['ajaxChatLoggedIn']=false;
/*$_SESSION['ajaxChatUserID']=$_SESSION['user'];
$_SESSION['ajaxChatUserName']=$_SESSION['fb_user_firstname'] . $_SESSION['fb_user_lastname'];
$_SESSION['ajaxChatLoginUserName']=$_SESSION['fb_user_firstname'] . $_SESSION['fb_user_lastname'];
*/
// Initialize the chat:
$ajaxChat = new CustomAJAXChat();
?>
